package com.exam.service.impl;

import com.exam.mapper.JudgeQuestionMapper;
import com.exam.po.JudgeQuestion;
import com.exam.service.JudgeQuestionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @ClassName JudgeQuestionServiceImpl
 * @Description TODO
 * @action luoliang
 * @Data 2021/1/12 11:35
 * @Version 1.0
 */
@Service
public class JudgeQuestionServiceImpl implements JudgeQuestionService {

    @Autowired
    private JudgeQuestionMapper judgeQuestionMapper;



    /**
     * 添加题库
     * @param record
     * @return
     */
    @Override
    public int Insert(JudgeQuestion record) {
        int insert = judgeQuestionMapper.insert(record);
        return insert;
    }

    @Override
    public JudgeQuestion SelectByPrimaryKey(Integer questionid) {
        JudgeQuestion judgeQuestion = judgeQuestionMapper.selectByPrimaryKey(questionid);
        return judgeQuestion;
    }
}
